package com.itheima.reggie.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("员工")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID")
    private Long id;
    @ApiModelProperty("员工用户名")
    private String username;
    @ApiModelProperty("员工姓名")
    private String name;
    @ApiModelProperty("员工密码")
    private String password;
    @ApiModelProperty("员工电话")
    private String phone;
    @ApiModelProperty("员工性别")
    private String sex;
    @ApiModelProperty("员工识别码")
    private String idNumber;
    @ApiModelProperty("员工状态")
    private Integer status;
    @ApiModelProperty("员工创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("员工修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @ApiModelProperty("员工创建人员")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @ApiModelProperty("员工修改人员")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;


}
